import { request } from '../../../request';

/** 获取系统下拉 */
export function getSystemSelect() {
  return request({
    url: '/mes/formModification/system',
    method: 'GET'
  });
}

/** 获取模块下拉 */
export function getModuleSelect(sysId: string | number) {
  return request({
    url: '/mes/formModification/module',
    method: 'GET',
    params: {
      sysId
    }
  });
}

/** 新增表单服务记录 */
export function addFormServiceRecord(data: any) {
  return request({
    url: '/mes/formModification/add/new',
    method: 'POST',
    data
  });
}

/** 修改表单服务记录 */
export function updateFormServiceRecord(data: any) {
  return request({
    url: '/mes/formModification/update',
    method: 'POST',
    data
  });
}

/** 删除表单服务记录 */
export function deleteFormServiceRecord(data: any[]) {
  return request({
    url: '/mes/formModification/deleteBatch',
    method: 'POST',
    data
  });
}

/** 完成表单服务记录 */
export function completeFormServiceRecord(data: any) {
  return request({
    url: '/mes/formModification/complete',
    method: 'POST',
    data
  });
}
